<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <script type="text/javascript">
            var open = function openCamera(height, wide, camera, option) {
				// var parameter = JSON.stringify({"h":height, "wide":wide, "camera":camera, "option":option});
            	var parameter = new Array();
            	parameter["h"] 		= height;
            	parameter["wide"] 	= wide;
            	parameter["camera"] = camera;
            	parameter["option"] = option;
            	return parameter;
            }
            </script>
    </head>
    <body>
        <br/>
        <br/>
        <br/>

        <form>
        高：<input type="text" name="height" id="h"><br/>
        宽：<input type="text" name="wide" id="wide"><br/>
        摄像头:
        <select name="camera" id="camera">
                    <option value="back">后置</option>
                    <option value="front">前置</option>
        </select>
            <br/>
        图片来源：
        <select name="options" id="options">
                    <option value="camera">相机</option>
                    <option value="album">相册</option>
                    <option value="all">全部</option>
        </select>
            <br/>
        </form>
        <input type="button" value="相机" wide="100" height="50" onclick="openCamera(h.value, wide.value, camera.value, options.value);">
        <br/>
        <img src="taobao.png" width="100" height="100" id="image">
    </body>
    
</html>